<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="./style.css">
    <title>消失的导航栏</title>
</head>
<body>
    <div class="container">
        <!-- 导航栏 -->
        <section id="navbar" class="navbar">
            <div class="logo">Logo</div>
            <ul class="right">
                <li>Home</li>
                <li>About</li>
                <li>Services</li>
                <li>Prices</li>
                <li>Contact</li>
            </ul>
        </section>

        <!-- 页面1 -->
        <section class="page1"></section>

        <!-- 页面2 -->
        <section class="page2">
            <!--
                侦查小兵

                当这个小子出现在可视区域内，隐藏导航栏
                当这个小子消失在可视区域时，显示导航栏
            -->
            <div id="dd" class="little-d"></div>
        </section>

        <!-- 页面3 -->
        <section class="page3"></section>

        <!-- 页面4 -->
        <section class="page4"></section>



    </div>
</body>

<script src="./script.js"></script>
</html>